<?php

class LoginBox extends Box {

	/**
	 * Ide jegyzi be a login folyamat ha baja van
	 * @var string
	 */
	public static $loginError;


	public function LoginBox($_langcode) {
		$this->id = ConstHandler::get('LOGIN_BOX_FAKE_ID');
		$this->langcode = $_langcode;
		$this->height = ConstHandler::get('LOGIN_BOX_HEIGHT');
		$this->css = ConstHandler::get('LOGIN_BOX_CSS');
		$this->place = ConstHandler::get('LOGIN_BOX_PLACE');
		if(UserHandler::hasUser())
			$this->name = TextHandler::getText("loginbox_title_loggedin");
		else
			$this->name = TextHandler::getText("loginbox_title_notloggedin");
			
		// egy db spéci tab-ja van
		$this->boxTabs = array();
		$boxTabObj = new LoginBoxTab($this);
		$this->boxTabs[$boxTabObj->id] = $boxTabObj;
		$this->defaultTabId = $boxTabObj->id;
			
		$this->reloadState();			
	}

}
?>